﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;

namespace MultLanguage.NLS
{
    public class LocalLanuageElement : ConfigurationElement
    {
        public LocalLanuageElement() : base()
        {
        }

        public LocalLanuageElement(string nation, string code)
        {
            Nation = nation;
            Code = code;
        }

        [ConfigurationProperty("nation", DefaultValue = "", IsRequired = true)]
        public string Nation
        {
            get { return (string)this["nation"]; }
            set { this["nation"] = value; }
        }

        [ConfigurationProperty("code", DefaultValue = "", IsRequired = true)]
        public string Code
        {
            get { return (string)this["code"]; }
            set { this["code"] = value; }
        }
    }
}
